package com.ruoyi.base.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品信息对象 t_goods
 *
 * @author wonderland
 * @date 2023-07-16
 */
public class Goods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 库存id
     */
    private Long id;

    /**
     * 条码
     */
    @Excel(name = "条码")
    private String code;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 规格
     */
    @Excel(name = "规格")
    private String spec;

    /**
     * 型号
     */
    @Excel(name = "型号")
    private String model;

    /**
     * 颜色
     */
    @Excel(name = "颜色")
    private String color;

    /**
     * 类别
     */
    @Excel(name = "类别")
    private String type;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;

    /**
     * 采购价
     */
    @Excel(name = "采购价")
    private Long purchasePrice;

    /**
     * 零售价
     */
    @Excel(name = "零售价")
    private Long retailPrice;

    /**
     * 销售价
     */
    @Excel(name = "销售价")
    private Long sellPrice;

    /**
     * 最低售价
     */
    @Excel(name = "最低售价")
    private Long minSellPrice;

    /**
     * 扩展信息
     */
    @Excel(name = "扩展信息")
    private String note;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Long state;

    /**
     * 序列号
     */
    @Excel(name = "序列号")
    private Long serialNumber;

    /**
     * 批号
     */
    @Excel(name = "批号")
    private Long batchNumber;

    private Long number;

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getSpec() {
        return spec;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getModel() {
        return model;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setPurchasePrice(Long purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public Long getPurchasePrice() {
        return purchasePrice;
    }

    public void setRetailPrice(Long retailPrice) {
        this.retailPrice = retailPrice;
    }

    public Long getRetailPrice() {
        return retailPrice;
    }

    public void setSellPrice(Long sellPrice) {
        this.sellPrice = sellPrice;
    }

    public Long getSellPrice() {
        return sellPrice;
    }

    public void setMinSellPrice(Long minSellPrice) {
        this.minSellPrice = minSellPrice;
    }

    public Long getMinSellPrice() {
        return minSellPrice;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getNote() {
        return note;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public Long getState() {
        return state;
    }

    public void setSerialNumber(Long serialNumber) {
        this.serialNumber = serialNumber;
    }

    public Long getSerialNumber() {
        return serialNumber;
    }

    public void setBatchNumber(Long batchNumber) {
        this.batchNumber = batchNumber;
    }

    public Long getBatchNumber() {
        return batchNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("name", getName())
                .append("spec", getSpec())
                .append("model", getModel())
                .append("color", getColor())
                .append("type", getType())
                .append("unit", getUnit())
                .append("purchasePrice", getPurchasePrice())
                .append("retailPrice", getRetailPrice())
                .append("sellPrice", getSellPrice())
                .append("minSellPrice", getMinSellPrice())
                .append("note", getNote())
                .append("state", getState())
                .append("serialNumber", getSerialNumber())
                .append("batchNumber", getBatchNumber())
                .toString();
    }
}
